home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / pwrbkdlf.hqx / PowerBook Dial Fix / cards.xml < prev    next >
Encoding:
Text File  |  1992-06-28  |  12.7 KB  |  218 lines

  1. card_3894.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3894</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_4346.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2695</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3081.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>432</left>
  25.             <top>14</top>
  26.             <right>494</right>
  27.             <bottom>64</bottom>
  28.         </rect>
  29.         <style>transparent</style>
  30.         <showName> <true /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <true /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>13223</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>Try the fix!</name>
  42.         <script>on mouseUpput the dialingTime into SaveDialingTime-- Send a command that should work in almost all situations.set the dialingTime to 600dial "555-1212" with modem "AT&FS7=3DT"set the dialingTime to SaveDialingTimeend mouseUp</script>
  43.     </part>
  44.     <name></name>
  45.     <script>on mouseUpgo nextend mouseUp</script>
  46. </card>
  47.  
  48.  
  49. card_3062.xml
  50. <?xml version="1.0" encoding="utf-8" ?>
  51. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  52. <card>
  53.     <id>3062</id>
  54.     <filler1>0</filler1>
  55.     <bitmap>BMAP_4849.pbm</bitmap>
  56.     <cantDelete> <false /> </cantDelete>
  57.     <showPict> <true /> </showPict>
  58.     <dontSearch> <false /> </dontSearch>
  59.     <owner>2695</owner>
  60.     <link rel="stylesheet" type="text/css" href="stylesheet_3081.css" />
  61.     <part>
  62.         <id>1</id>
  63.         <type>field</type>
  64.         <visible> <true /> </visible>
  65.         <dontWrap> <false /> </dontWrap>
  66.         <dontSearch> <false /> </dontSearch>
  67.         <sharedText> <false /> </sharedText>
  68.         <fixedLineHeight> <true /> </fixedLineHeight>
  69.         <autoTab> <false /> </autoTab>
  70.         <lockText> <true /> </lockText>
  71.         <rect>
  72.             <left>204</left>
  73.             <top>99</top>
  74.             <right>468</right>
  75.             <bottom>307</bottom>
  76.         </rect>
  77.         <style>transparent</style>
  78.         <autoSelect> <false /> </autoSelect>
  79.         <showLines> <false /> </showLines>
  80.         <wideMargins> <true /> </wideMargins>
  81.         <multipleLines> <false /> </multipleLines>
  82.         <reservedFamily> 0 </reservedFamily>
  83.         <titleWidth>-32749</titleWidth>
  84.         <icon>0</icon>
  85.         <textAlign>left</textAlign>
  86.         <font>Geneva</font>
  87.         <textSize>9</textSize>
  88.         <textStyle>plain</textStyle>
  89.         <textHeight>12</textHeight>
  90.         <name>TheText</name>
  91.         <script></script>
  92.     </part>
  93.     <content>
  94.         <layer>card</layer>
  95.         <id>1</id>
  96.         <text>This software is brought to you courtesy of BungDabba Productions. This software is provided "as is" without warranty of any kind, and BungDabba Productions expressly disclaims all implied warranties, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the results and performance of this software is assumed by you.You are free to use and distribute this stack, or the "Dial" external, anyway you see fit.┬⌐ Copyright 1992 by BungDabba Productions. All Rights Reserved.</text>
  97.     </content>
  98.     <name></name>
  99.     <script>on mouseUpgo nextend mouseUp</script>
  100. </card>
  101.  
  102.  
  103. card_4535.xml
  104. <?xml version="1.0" encoding="utf-8" ?>
  105. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  106. <card>
  107.     <id>4535</id>
  108.     <filler1>0</filler1>
  109.     <cantDelete> <false /> </cantDelete>
  110.     <showPict> <true /> </showPict>
  111.     <dontSearch> <false /> </dontSearch>
  112.     <owner>2695</owner>
  113.     <link rel="stylesheet" type="text/css" href="stylesheet_3081.css" />
  114.     <part>
  115.         <id>1</id>
  116.         <type>field</type>
  117.         <visible> <true /> </visible>
  118.         <dontWrap> <false /> </dontWrap>
  119.         <dontSearch> <false /> </dontSearch>
  120.         <sharedText> <false /> </sharedText>
  121.         <fixedLineHeight> <false /> </fixedLineHeight>
  122.         <autoTab> <false /> </autoTab>
  123.         <lockText> <true /> </lockText>
  124.         <rect>
  125.             <left>191</left>
  126.             <top>88</top>
  127.             <right>500</right>
  128.             <bottom>302</bottom>
  129.         </rect>
  130.         <style>scrolling</style>
  131.         <autoSelect> <false /> </autoSelect>
  132.         <showLines> <false /> </showLines>
  133.         <wideMargins> <true /> </wideMargins>
  134.         <multipleLines> <false /> </multipleLines>
  135.         <reservedFamily> 0 </reservedFamily>
  136.         <titleWidth>0</titleWidth>
  137.         <icon>0</icon>
  138.         <textAlign>left</textAlign>
  139.         <font>Geneva</font>
  140.         <textSize>10</textSize>
  141.         <textStyle>plain</textStyle>
  142.         <textHeight>13</textHeight>
  143.         <name></name>
  144.         <script></script>
  145.     </part>
  146.     <part>
  147.         <id>2</id>
  148.         <type>button</type>
  149.         <visible> <true /> </visible>
  150.         <reserved5> 0 </reserved5>
  151.         <reserved4> 0 </reserved4>
  152.         <reserved3> 0 </reserved3>
  153.         <reserved2> 0 </reserved2>
  154.         <reserved1> 0 </reserved1>
  155.         <enabled> <true /> </enabled>
  156.         <rect>
  157.             <left>257</left>
  158.             <top>308</top>
  159.             <right>388</right>
  160.             <bottom>333</bottom>
  161.         </rect>
  162.         <style>shadow</style>
  163.         <showName> <true /> </showName>
  164.         <highlight> <false /> </highlight>
  165.         <autoHighlight> <true /> </autoHighlight>
  166.         <sharedHighlight> <true /> </sharedHighlight>
  167.         <family>0</family>
  168.         <titleWidth>0</titleWidth>
  169.         <icon>0</icon>
  170.         <textAlign>center</textAlign>
  171.         <font>Geneva</font>
  172.         <textSize>10</textSize>
  173.         <textStyle>plain</textStyle>
  174.         <name>Install Dial XCMDΓǪ</name>
  175.         <script>on mouseUpinstallExternalend mouseUpon installExternal---- Copy the dial external in this stack to the home stack or another stack.--answer "Install a copy of the ΓÇ£DialΓÇ¥ external in what stack?" ┬¼with "Cancel", "Other Stack" or "Home"if it is "Other Stack" thenanswer file "Install a copy of the externals in what stack?" of type "STAK" -- Γêåif (it is empty) or (the result is "Cancel") thenexit installExternalend ifput it into TargetStackNameelse if it is "Home" thenput the value of word 2 of the long name of home into TargetStackNameset cursor to watchelseexit installExternalend if-- Get some information about where we are.put the value of word 2 of the long name of this stack into CurStackNameset cursor to watch--if offset(" dial" & return,resources(TargetStackName)) > 0 thenbeepanswer "This stack already has the Dial external installed."exit installExternalend if--CopyRes "XCMD","3189",CurStackName,TargetStackNameif the result contains "Error:" then answer the result--play harpsichord "ce ae"answer "Please quit HyperCard to complete installation." ┬¼-- Γêåwith "Cancel" or "Quit"if it is "Quit" thendomenu "Quit HyperCard"end ifend installExternal</script>
  176.     </part>
  177.     <part>
  178.         <id>3</id>
  179.         <type>button</type>
  180.         <visible> <true /> </visible>
  181.         <reserved5> 0 </reserved5>
  182.         <reserved4> 0 </reserved4>
  183.         <reserved3> 0 </reserved3>
  184.         <reserved2> 0 </reserved2>
  185.         <reserved1> 0 </reserved1>
  186.         <enabled> <true /> </enabled>
  187.         <rect>
  188.             <left>447</left>
  189.             <top>17</top>
  190.             <right>490</right>
  191.             <bottom>57</bottom>
  192.         </rect>
  193.         <style>transparent</style>
  194.         <showName> <false /> </showName>
  195.         <highlight> <false /> </highlight>
  196.         <autoHighlight> <false /> </autoHighlight>
  197.         <sharedHighlight> <true /> </sharedHighlight>
  198.         <family>0</family>
  199.         <titleWidth>0</titleWidth>
  200.         <icon>17264</icon>
  201.         <textAlign>center</textAlign>
  202.         <font>Chicago</font>
  203.         <textSize>12</textSize>
  204.         <textStyle>plain</textStyle>
  205.         <name></name>
  206.         <script>on mouseUpdial "!"answer the resultend mouseUp</script>
  207.     </part>
  208.     <content>
  209.         <layer>card</layer>
  210.         <id>1</id>
  211.         <text><span class="style2">escription:</span><span class="style1">  With HyperCard 2.1 (and previous versions) the "dial <number> with modem" command does not work for some internal PowerBook modems. Although you can still use the speaker of a PowerBook to generate the dialing tones and dial a phone number, many people would still like to use their internal PowerBook modem. The "Dial" XCMD included in this stack will successfully dial using internal PowerBook modems. Just install the "Dial" XCMD in your Home stack and everything should work fine.</span><span class="style2">What was the problem?:</span><span class="style1">   It turns out that there is a problem when using the internal PowerBook modem if the application tries to talk with the modem too quickly. Since almost all applications (except HyperCard) do quite a bit of communications setup before they "talk" with a modem, they will never have a problem. HyperCard is just a little too fast (by only about 2/60ths of a second) for the internal PowerBook modem. HyperCard sends the dial command, but the modem is not ready so nothing happens.</span><span class="style2">How it works:</span><span class="style1">   The "Dial" XCMD waits about half a second before sending the dial command to the modem. Waiting for this brief amount of time gives the internal modem a chance to wake up and respond to the dial command. Because this XCMD has the same name as the HyperTalk "dial" command, if you install it in your Home stack it will handle any "dial <number> with modem" command. You will not have to do anything else.   The "Dial" XCMD only handles the "with modem" dial commands. Any other command is passed for HyperCard to handle normally.</span><span class="style2">Comments:</span><span class="style1">   The button at the bottom of this card installs the "Dial" XCMD in your current Home stack (or a stack of your choice). It is suggested that you install it in your Home stack because the Home stack is the last stack in HyperCardΓÇÖs message passing hierarchy. Although you can put the "Dial" XCMD into any stack or even "start using" this stack, there may be times when the dial command is called after any stack you choose. Since Home is the last stack in the hierarchy it will be the last stack to handle the "dial" command.   Note that this external is a fix for HyperCard 2.1.</span><span class="style2">Solving Problems (it still doesnΓÇÖt work?):</span><span class="style1">   </span><span class="style7">Still no response from the modemΓǪ</span><span class="style1"> You might be using the ΓÇ£Phone DialerΓÇ¥ stack. Unfortunately, the ΓÇ£Phone DialerΓÇ¥ stack sends the dial command directly to HyperCard. The Dial XCMD in the Home stack never has a chance to handle the command. In the stack script of the ΓÇ£Phone DialerΓÇ¥ change every instance of "to hyperCard" to "to home".</span><span class="style2"></span><span class="style1">   </span><span class="style7">I hear a dial tone or the number being dialed, but it stops suddenlyΓǪ</span><span class="style1"> You may need a longer dialingTime. Internal modems will often take longer to dial. Be sure to set longer dialing times for internal modems (for example: "set the dialingTime to 500"). The ΓÇ£Phone DialerΓÇ¥ stack included in the Claris HyperCard Development Kit for HyperCard 2.1 explains the dialingTime parameter and includes common modem commands.   </span><span class="style7">I don't hear anythingΓǪ</span><span class="style1"> Make sure that the Macintosh speaker volume is set to a volume that you can hear. If the speaker volume is greater than zero, then the modem may have its monitor speaker turned off. Including "M1" in the modem command (for example: "ATM1DT") turns the monitor speaker on. If there is still no sound, your modem might be configured incorrectly. You can reset your Apple Internal PowerBook modem to the factory setting by using the "AT&FDT" modem command.   </span><span class="style7">The number dials, but when I pick up the phone there is only a dial toneΓǪ</span><span class="style1"> An easy solution is to pick up the phone before you dial. However, with a PowerBook internal modem the dialingTime determines how long the modem will be on, and the modem's S7 register determines how long the modem will wait after dialing before hanging up. Set S7 to a longer time in your modem command (for example: "ATS7=5DT"), and set the dialingTime to a time longer than the time it would  take to dial your longest number plus the S7 time. The ΓÇ£Phone DialerΓÇ¥ stack included in the Claris HyperCard Development Kit for HyperCard 2.1 helps you modify the S7 time (or "hang up after dialing time").   </span><span class="style7">The button on the first card dialed, but I still can't dialΓǪ</span><span class="style1"> The button on the first card uses the modem command "AT&FS7=3DT" and sets the dialingTime to 600. Try these settings. If you still can't dial then the Dial XCMD may not be installed in your current Home stack.</span><span class="style5">For HyperCard upgrades Call:</span><span class="style6">USA: 800-544-8554   M-F 8:30am-5:30pm PSTCanada: 800-668-8948   M-F 8am-5:30pm ESTInternational: 408-727-8227   M-Th 8am-5pm, F 8am-2pm PSTWho is my Claris dealer?   USA: 800-325-2747   Canada: 800-668-8948</span></text>
  212.     </content>
  213.     <name></name>
  214.     <script></script>
  215. </card>
  216.  
  217.  
  218.